package com.tedu.lingma.agent.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.micrometer.common.lang.NonNullApi;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@Tag(name = "API模块")
@RestController
@RequestMapping("/api")
public class APIController {

    @Operation(summary = "request请求发送")
    @RequestMapping("/req")
    public String request() {
        return "request  请求方式";
    }

 /*   @Operation( summary = "Get请求方式")
    @RequestMapping(value = "/get",method = RequestMethod.GET)
    public String get1() {
        return "get  请求方式";
    }*/

    @Operation( summary = "Get请求方式")
    @GetMapping(value = "/get")
    public String get() {
        return "get  请求方式";
    }

    @Operation(summary = "post请求方式")
    @PostMapping("/post")
    public String post(){
        return "post  请求方式";
    }




}
